<?
	include_once('global.php');

	$conn = GetConnection();
	$result = $conn->query($sqlCleanUp);
	$sql1 = 'CREATE TABLE Final_Subjects ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, Name varchar(50) null)';
	$result = $conn->query($sql1);
	$sql2 = 'CREATE TABLE Final_Urls ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, SubjectId int not null, URL varchar(1024) null, Clicks int null)';
	$result = $conn->query($sql2);
	$error = $conn->error;
	$conn->close();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
	<? if($error != ''): ?>
    	<?=$error?>
    <? else: ?>
    	<h3>Success</h3>
    <? endif; ?>
</body>
</html>
